package com.zqk.pattern.creational.simplefactory;

/**
 * @Package com.zpk.pattern.creational.simplefactory
 * @Description:TODO
 * @Author 张乾坤
 * @Create: 2018/10/25
 * @Version 1.0
 * @Update: message
 */
public class Test {
    public static void main(String[] args) throws IllegalAccessException, InstantiationException, ClassNotFoundException {
       /* VideoFactory videoFactory=new VideoFactory();
        Video java = videoFactory.getVideo("java");
        final Video python = videoFactory.getVideo("python");
        if(java==null){
            return;
        }
        java.produce();
        python.produce();*/
        VideoFactory videoFactory=new VideoFactory();
         Video java = videoFactory.getVideo(JavaVideo.class);
      java.produce();



    }
}
